<template>
  <div class="indent">
      <div class="bg"></div>
      <!-- 搜索 -->
      <div class="search">
     <van-nav-bar class="vsearch" left-arrow >
        <template #title>
            <div class="search-title">我的订单</div>
        </template>
        <template #left>
            <van-icon name="arrow-left" class="search-right" color="#C53D41" />
        </template>
      </van-nav-bar>
      </div>
     <!-- 标签页 -->
     <div class="ititle">
         <van-tabs v-model="active" title-active-color="#C53D41">
            <van-tab title="全部" >
                <div class="content">
                   没有发现订单信息 
                </div>
            </van-tab>
            <van-tab  title="待付款">
                <div class="content">
                    <div class="content-item">
                        <div class="title">
                            <div class="title-left">
                                我是标题
                            </div>
                            <div class="title-right">已完成</div>
                        </div>
                        <div class="content-img-item">
                            <img class="content-img" src="static/image/indent/icon1.png" alt="">
                            <div class="content-img-text">
                                <div>下单时间2021-05-24 17：15</div>
                                <div>总价：￥31.93</div>
                            </div>
                        </div>
                    </div>
                </div>
            </van-tab>
            <van-tab title="待取货">
                <!-- 没有内容的情况下 -->
            <div class="content-none">
               <div class="content-none-item">
                  <div class="none-text">
                   <p>此处空空如也</p>
                   <p>您还没有下过单</p>
                  </div>
                  <div class="none-button">
                      <van-button square type="info" color="#C53D41">点击去商品列表页</van-button>               
                  </div>
                </div>
            </div>
            </van-tab>
            <van-tab title="退款/售后">退款/售后</van-tab>
         </van-tabs>
     </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            active: 1
        }
    }
}
</script>

<style scoped lang="scss">
    // 标签栏
    .bg{
       background-image: url("/static/image/indent/bg.jpg"); 
       width: 100%;
       height: 100%;
       position: absolute;
       top: 0;
       left: 0;
       bottom: 0;
       right: 0; 
    }
    .search{
        .search-title{
       color: #C53D41;
       }
        .search-right{
         //    color: #C53D41;
         font-size: 20px;
       }
    }
   //标签栏
   .ititle{
       font-size: 18px;
   }
   //标题栏中的内容
   //内容区域
    .content-item{
        padding: 10px;
        border: 1px solid #878787;
        border-radius: 20px;
        margin: 20px;
        color: #878787;
    }
   .content-item .title{
       display: flex;
       justify-content: space-between;
     .title-left{
         font-size: 15px;
     }
     .title-right{
         font-size: 14px;
         color: #878787;
     }  
     padding-bottom: 10px;
     border-bottom: 1px solid #F0F0F0; 
   }
   .content-img-item{
       display: flex;
        align-items: center;
   }
 .content-img-item .content-img{
             width:80px;
             height: 80px;
         }
.content-img-item .content-img-text{
    display: 1;
    font-size: 14px;
    color: #878787;
    // margin-top: 20px;
 
}
.content-img-item .content-img-text div {
    margin: 5px;
}

// 没有内容的情况下
.content-none{
    width: 100%;
}
.content-none .content-none-item{
    margin-top: 200px;
   text-align: center;
   & p{
        font-size: 16px;
        margin-bottom: 10px;
        color: #7C7C7C;
    }
   & .none-button{
       padding-top: 10px;
   }
}

</style> 